/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-05-04
 * Time:22:22
 */
public class TestDemo4 {
    public static int add(int x,int y){
        return x>y?x:y;
    }
    public static double add(double x,double y){
        return x>y?x:y;
    }
    public static void main(String[] args) {
        System.out.println(add(3,5));
        System.out.println(add(3.0,5.0));
    }
}
